package app

/*
const char* GetCompileDate(void)
{
    return __DATE__;
}

const char* GetCompileTime()
{
	return __TIME__;
}
*/
import "C"
import (
	"fmt"
)

var buildTime string

var AppVersion = "1.0.7.7"

func GetBuildTime() string {
	if buildTime != "" {
		return buildTime
	}

	dt := C.GoString(C.GetCompileDate())
	tm := C.GoString(C.GetCompileTime())

	buildTime = fmt.Sprintf("%s %v", dt, tm)

	return buildTime
}
